package javaParser;
/*
 * RdfNestClass.java
 *
 * Created on February 28, 2008, 3:12 PM
 *
 */

/**
 *
 * @author Tian, Juan
 */
import java.util.LinkedList;
public class RdfNestClass extends RdfTreeNode{
    
    private LinkedList <RdfMethod> methods;
    private LinkedList <RdfField> fields;
    private LinkedList <RdfConstructor> contructors;
    private String superclass;
    private LinkedList <String> superInterfaces;
    
    /** Creates a new instance of RdfNestClass */
    public RdfNestClass() {
        this("default");
    }
    public RdfNestClass(String perfix) {
        this(perfix, null, null);
    }
    public RdfNestClass(String name, String type){
        this("default", name, type);
    }
    public RdfNestClass(String perfix, String name, String type) {
        this(perfix, name, type, null);
    }
    public RdfNestClass(String perfix, String name, String type, String superclass) {
        super(perfix, name, type);
        methods = new LinkedList <RdfMethod>();
        fields = new LinkedList <RdfField>();
        contructors = new LinkedList <RdfConstructor>();
        superInterfaces = new LinkedList <String>();
        this.superclass = superclass;
    }
    
    public LinkedList<RdfMethod> getMethods() {
        return methods;
    }
    public LinkedList<RdfField> getFields() {
        return fields;
    }
    public LinkedList<RdfConstructor> getContructors() {
        return contructors;
    }
    public LinkedList <String> getSuperInterfaces() {
        return superInterfaces;
    }
    public void setSuperclass(String s) {
        superclass = s;
    }
    public String getSuperclass() {
        return superclass;
    }
    public boolean addSuperInterface(String s) {
        return superInterfaces.add(s);
    }
    public boolean addMethod(RdfMethod a) {
        return methods.add(a);
    }
    public boolean addField(RdfField a) {
        return fields.add(a);
    }
    public boolean addContructor(RdfConstructor a) {
        return contructors.add(a);
    }
   
}
